const { defineConfig } = require('@vue/cli-service')
const { Linter } = require('eslint')
module.exports = defineConfig({
  transpileDependencies: true,
  lintOnSave: false,
  devServer: {
    host: 'localhost',
    port: 3306,
    proxy: {
      '/api': {
        target: 'http://localhost:5000',// 要跨域的域名
        changeOrigin: true, // 是否开启跨域
        pathRewrite: {'^/api': ''}
      },
    }
  }
})
